package com.legal.app.domain;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.legal.common.annotation.Excel;
import com.legal.common.core.domain.BaseEntity;

/**
 * 律师评分对象 z_lawyer_rating
 * 
 * @author ALe
 * @date 2025-05-30
 */
@TableName("z_lawyer_rating")
public class LawyerRating extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 评分ID */
    private Long id;

    /** 律师ID */
    @Excel(name = "律师ID")
    private Long lawyerId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 评分(1-5) */
    @Excel(name = "评分(1-5)")
    private Integer rating;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String content;

    /** 状态(0=已删除,1=正常) */
    @Excel(name = "状态(0=已删除,1=正常)")
    private Long status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLawyerId(Long lawyerId) {
        this.lawyerId = lawyerId;
    }

    public Long getLawyerId() {
        return lawyerId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setRating(Integer rating) {
        this.rating = rating;
    }

    public Integer getRating() {
        return rating;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("lawyerId", getLawyerId())
                .append("userId", getUserId())
                .append("rating", getRating())
                .append("content", getContent())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .toString();
    }
}